﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/ResponsiveTheme.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TaggerApp.Admin.Pages.Settings.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style>  body {padding-top: 60px;padding-bottom: 40px;}      </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="Please correct the following errors:" DisplayMode="BulletList" CssClass="alert alert-error" EnableClientScript="true" />

    <div class="alert alert-block">
  <span class="label label-important">Important! </span><br />
        Please read the following information before making changes to this page.
        <ul>
            <li>Application Name is used for organization and styling purpose.</li>
            <li>To get current application name, click on View Name button and enter the current name.</li>
            <li>If you are not changing Microsoft Tag API Key, then you must insert the current key.</li>
            <li>Click on View Key button. Copy the current key and enter it in API Key textbox.</li>
            <li>For more info, click here.</li>
        </ul>
</div>
    <hr />
    <table style="padding-left:1%">
        <tr>
           <td><asp:Label ID="lblApplicationName" runat="server" Text="Application Name:"></asp:Label></td>
            <td><asp:TextBox ID="txtBoxApplicationName" runat="server" CssClass="input-medium"></asp:TextBox>
              <asp:RequiredFieldValidator ID="txtBoxNameReqFldValid" runat="server" ControlToValidate="txtBoxApplicationName" Display="Dynamic" ErrorMessage="Application Name is required. Cannot be empty." ValidationGroup="settingValidations"><i class="icon-exclamation-sign" title="Application Name is required. Cannot be empty."></i>
                                </asp:RequiredFieldValidator>
<%--                 <asp:Label ID="lblShowAppName" runat="server" Text="" ></asp:Label>
                <asp:Button ID="btnViewAppName" runat="server" Text="View Name" class="btn btn-info btn-mini" OnClick="btnViewAppName_Click" type="button"/>
                <asp:Button ID="btnHideAppName" runat="server" Text="Hide Name" class="btn btn-info btn-mini" OnClick="btnHideAppName_Click" type="button"/>--%>
                </td> 
        </tr>
<%--        <tr>
             <td><asp:Label ID="lblApplicationLogo" runat="server" Text="Application Logo URL:"></asp:Label></td>
            <td><asp:TextBox ID="txtBoxLogoURL" MaxLength="150" runat="server" CssClass="input-xlarge"></asp:TextBox></td>
        </tr>--%>
        <tr>
             <td><asp:Label ID="lblKey" runat="server" Text="API Key:"></asp:Label></td>
            <td><asp:TextBox ID="txtBoxAPIKey" runat="server" CssClass="input-large"></asp:TextBox>
              <asp:RequiredFieldValidator ID="txtBoxKeyReqFldValid" runat="server" ControlToValidate="txtBoxAPIKey" Display="Dynamic" ErrorMessage="API Key is required. Cannot be empty." ValidationGroup="settingValidations">
                                    <i class="icon-exclamation-sign" title="API Key is required. Cannot be empty."></i>
                                </asp:RequiredFieldValidator>
                <asp:Label ID="lblCurrentKey" runat="server" Text="" ></asp:Label>
                <asp:Button ID="btnViewKey" runat="server" Text="View Key" class="btn btn-info btn-mini" OnClick="btnViewKey_Click" type="button"/>
                <asp:Button ID="btnHideKey" runat="server" Text="Hide Key" class="btn btn-info btn-mini" OnClick="btnHideKey_Click" type="button"/>
                </td>
        </tr>
        <tr>
            <td colspan="2"><asp:Button ID="btnSaveKey" runat="server" Text="Save" OnClick="btnSaveKey_Click" CssClass="btn btn-primary" ValidationGroup="settingValidations"/></td>
        </tr>
    </table>
</asp:Content>

